package pt.compflow.interfaces.event;

import pt.compflow.Context;
import pt.compflow.flowontology.model.Event;
import pt.compflow.flowontology.model.FlowOntologyModel;
import pt.compflow.interfaces.IOInterface;
import pt.compflow.storage.TripleStoreConnection;
import pt.compflow.tools.OntModelHelper;

import com.hp.hpl.jena.rdf.model.Resource;

public interface EventInterface extends IOInterface {
		
	public String subscribe(Context context, TripleStoreConnection store, OntModelHelper ontModelHelper, FlowOntologyModel jobModel, FlowOntologyModel engineModel, String jobUri, Resource eventClass, Event event);
	public void unsubscribe(Context context, TripleStoreConnection store, OntModelHelper ontModelHelper, FlowOntologyModel jobModel, FlowOntologyModel engineModel, String jobUri, Resource eventClass, Event event);
	
	public void onEvent(String subscriptionId, String jobUri, String eventClassUri, String eventUri);
			
}
